How can you prevent a class from overriding in C# and Visual Basic?
2693
27-Aug-2014
Sumit Kesarwani
27-Aug-2014You can prevent a class from overriding in C# by using the sealed keyword; whereas, the NotInheritable keyword is used to prevent a class from overriding in Visual Basic.